package com.fxp.project.jiuselu.web.models.goods.service;

import com.fxp.project.jiuselu.web.models.goods.entity.JslActivity;
import com.fxp.project.jiuselu.web.models.goods.entity.JslGoodsAttr;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fxp.project.jiuselu.web.models.goods.vo.GoodsAttrVo;

import java.util.List;

/**
 * <p>
 * 商品规格表 服务类
 * </p>
 *
 * @author Jason.Wang
 * @since 2021-11-01
 */
public interface IJslGoodsAttrService extends IService<JslGoodsAttr> {

    /**
     * selectGoodsAttrVoListByGoodsId: 获取商品的规矩列表信息<br/>
     *
     * @param goodsId
     * @return
     * @author Jason.Wang
     * @date 2021/11/7 10:17 上午
     */
    List<GoodsAttrVo> selectGoodsAttrVoListByGoodsId(Long goodsId);

    List<JslActivity> selectGoodsActivityByGoodsId(Long goodsId);

    int updateStoreCountByGoodsIdAndAttrId(Integer stock, Long goodsId,Long attrId);

    GoodsAttrVo selectGodosAttrVoListBtAttrId(Long attrId);
}
